<?php

return function ($class_admin, $oRes, $class_qiniu, $db2, $method, $pageParams, $queryParams, $sortParams, $oper_id, $formValue, $uploadFile) {
    $mConfig = array();
    $mConfig['name'] = 'ntuser_balance';
    $mConfig['title'] = '用户点数';
    $mConfig['id'] = 'id';
    $mConfig['upload'] = array('name' => 'yun_' . $mConfig['name']);
    $mConfig['sort'] = array('prop' => 'id', 'order' => 'descending');
    $mConfig['column'] = array();
    $mConfig['column'][] = array('prop' => $mConfig['id'], 'label' => 'ID', 'width' => 60);
    $mConfig['column'][] = array('prop' => 'created', 'label' => '创建时间', 'width' => 150, 'where' => 'between', 'search_type' => 'datetimerange');
    $mConfig['column'][] = array('prop' => 'user_id', 'label' => '账户ID', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $mConfig['column'][] = array('prop' => 'username', 'label' => '用户名', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $mConfig['column'][] = array('prop' => 'acctype', 'label' => '账户类型', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $mConfig['column'][] = array('prop' => 'balance', 'label' => '账户点数', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $class_admin->table_crud($mConfig, $oRes, $class_qiniu, $db2, $method, $pageParams, $queryParams, $sortParams, $oper_id, $formValue, $uploadFile);
};
